const path = require('path');
function resolve(dir) {
  return path.join(__dirname, dir);
}

module.exports = {
  devServer: {
    compress: true,  //压缩
    port: 2020  //端口
  },
  publicPath: './',
  css: {
    extract: false // css文件分离
  },
  chainWebpack: config => {
    config.resolve.alias
      .set('@', resolve('src'))
  }
}